package com.cloud.registry;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer;
import org.springframework.cloud.netflix.hystrix.dashboard.EnableHystrixDashboard;

@SpringBootApplication
@EnableEurekaServer            // 声明这是一个Eureka Server，即注册中⼼。⾥⾯有⼀个注册表，保存了各个服务所在的机器和端⼝号
@EnableHystrixDashboard        // 在eureka服务注册中心实现HystrixDashboard(也可以单独新建一个微服务实现HystrixDashboard)
public class RegistryApplication {

	public static void main(String[] args) {
		SpringApplication.run(RegistryApplication.class, args);
	}
}
